﻿using System;
using System.Drawing;
using System.Windows.Forms;
using System.Collections;
using System.IO;
using System.Xml;

namespace SuDokuSolution
{
   public class Grid:Control
    {
        internal Bitmap bufferBitmap;
        protected bool isGameStarted = false;
        
       
        /// Flag to set auto updation of candidate nbs true
    
        internal bool autoUpdate = false;

       
        /// Flag to set simultaneous checking true
      
        internal bool simultaneousCheck = false;

       
        /// Raised when  a new gam starts
      
        public EventHandler StartGame;

      
        /// Raised when a Game Ends
  
        public EventHandler EndGame;

     
      
      

       
        /// whether generating a puzzle manually or not
       
        internal bool generatingPuzzle = false;


        /// Raises Start Game Event
        public void OnStartGame(EventArgs e)
		{
			if(StartGame!=null)
				StartGame(this,e);
		}
        /// Raises End Game Event
      

        /// Raises all the events related to a game start
        protected void ExecuteStartGame()
        {
            isGameStarted = true;
            OnStartGame(EventArgs.Empty);
        }

    
    }
}
